package ru.kurganec.ifmo.netland.event.chat;

import ru.kurganec.ifmo.netland.util.ChatChannel;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: oo
 * Date: 14.07.11
 * Time: 19:50
 */
public class ChannelEvent  extends  ChatEvent{
    // ===========================================================
    // Constants
    // ===========================================================

    // ===========================================================
    // Fields
    // ===========================================================
    ArrayList<ChatChannel> channelsList;
    // ===========================================================
    // Constructors
    // ===========================================================

    public ChannelEvent(Object source, String message, ArrayList<ChatChannel> channelsList) {
        super(source, message);
        this.channelsList = channelsList;
    }


    // ===========================================================
    // Getter & Setter
    // ===========================================================

    public ArrayList<ChatChannel> getChannelsList() {
        return (ArrayList<ChatChannel>) channelsList.clone(); //TODO: the same clone question
    }


    // ===========================================================
    // Methods for/from SuperClass/Interfaces
    // ===========================================================

    // ===========================================================
    // Methods
    // ===========================================================

    // ===========================================================
    // Inner and Anonymous Classes
    // ===========================================================
}
